<template>
    <div class="loginBack">
        <van-nav-bar @click-left="onClickLeft()">
                <template #left>
                    <div class="icon">
                        <img class="auto-img" src="../../public/images/login/向左.png" alt="">
                    </div>
                </template>
            </van-nav-bar>
    </div>
</template>

<script>
    export default {
        name:"LoginBack",
        methods:{
            onClickLeft(){
                this.$emit('leftClick')
                // this.$router.back()
            }
        }
    }
</script>

<style lang="less" scoped>
.icon {
    width: 25px;
    height: 25px;
}
</style>